package ngames.com.sushitv.Fragment;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import ngames.com.sushitv.AppApplication;
import ngames.com.sushitv.R;
import ngames.com.sushitv.action.SearchRequestAction;
import ngames.com.sushitv.action.SearchUserAction;

/**
 * A simple {@link Fragment} subclass.
 */
public class SRUserFragment extends Fragment {
    private View view;
    private SearchUserAction searchUserAction;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        view=inflater.inflate(R.layout.fragment_sruser, container, false);
        String i=AppApplication.getSearchRequestType();
        if(AppApplication.getSearchRequestType().equals("2")) {
            searchUserAction = new SearchUserAction(getActivity(), view, 1, "users", AppApplication.getSearchKeyWord());
            searchUserAction.onCreate();
        }
        return view;
    }

}
